/**
 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.cmc.service.merchant.model;

import java.io.Serializable;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * This class is used by SOAP remote services, specifically {@link com.cmc.service.merchant.service.http.MerchantEntryServiceSoap}.
 *
 * @author    ntcuong1
 * @see       com.cmc.service.merchant.service.http.MerchantEntryServiceSoap
 * @generated
 */
public class MerchantEntrySoap implements Serializable {
	public static MerchantEntrySoap toSoapModel(MerchantEntry model) {
		MerchantEntrySoap soapModel = new MerchantEntrySoap();

		soapModel.setMerchantId(model.getMerchantId());
		soapModel.setCompanyId(model.getCompanyId());
		soapModel.setCreatorUserId(model.getCreatorUserId());
		soapModel.setCreateDate(model.getCreateDate());
		soapModel.setModifiedDate(model.getModifiedDate());
		soapModel.setType(model.getType());
		soapModel.setCode(model.getCode());
		soapModel.setTitle(model.getTitle());
		soapModel.setDescription(model.getDescription());
		soapModel.setOrganization(model.getOrganization());
		soapModel.setOrganizationId(model.getOrganizationId());
		soapModel.setOrganizationType(model.getOrganizationType());
		soapModel.setOrganizationStatus(model.getOrganizationStatus());
		soapModel.setSites(model.getSites());
		soapModel.setRecursable(model.getRecursable());
		soapModel.setCountryId(model.getCountryId());
		soapModel.setRegionId(model.getRegionId());
		soapModel.setLongitude(model.getLongitude());
		soapModel.setLatitude(model.getLatitude());
		soapModel.setParentId(model.getParentId());

		return soapModel;
	}

	public static MerchantEntrySoap[] toSoapModels(MerchantEntry[] models) {
		MerchantEntrySoap[] soapModels = new MerchantEntrySoap[models.length];

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModel(models[i]);
		}

		return soapModels;
	}

	public static MerchantEntrySoap[][] toSoapModels(MerchantEntry[][] models) {
		MerchantEntrySoap[][] soapModels = null;

		if (models.length > 0) {
			soapModels = new MerchantEntrySoap[models.length][models[0].length];
		}
		else {
			soapModels = new MerchantEntrySoap[0][0];
		}

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModels(models[i]);
		}

		return soapModels;
	}

	public static MerchantEntrySoap[] toSoapModels(List<MerchantEntry> models) {
		List<MerchantEntrySoap> soapModels = new ArrayList<MerchantEntrySoap>(models.size());

		for (MerchantEntry model : models) {
			soapModels.add(toSoapModel(model));
		}

		return soapModels.toArray(new MerchantEntrySoap[soapModels.size()]);
	}

	public MerchantEntrySoap() {
	}

	public long getPrimaryKey() {
		return _merchantId;
	}

	public void setPrimaryKey(long pk) {
		setMerchantId(pk);
	}

	public long getMerchantId() {
		return _merchantId;
	}

	public void setMerchantId(long merchantId) {
		_merchantId = merchantId;
	}

	public long getCompanyId() {
		return _companyId;
	}

	public void setCompanyId(long companyId) {
		_companyId = companyId;
	}

	public long getCreatorUserId() {
		return _creatorUserId;
	}

	public void setCreatorUserId(long creatorUserId) {
		_creatorUserId = creatorUserId;
	}

	public Date getCreateDate() {
		return _createDate;
	}

	public void setCreateDate(Date createDate) {
		_createDate = createDate;
	}

	public Date getModifiedDate() {
		return _modifiedDate;
	}

	public void setModifiedDate(Date modifiedDate) {
		_modifiedDate = modifiedDate;
	}

	public String getType() {
		return _type;
	}

	public void setType(String type) {
		_type = type;
	}

	public String getCode() {
		return _code;
	}

	public void setCode(String code) {
		_code = code;
	}

	public String getTitle() {
		return _title;
	}

	public void setTitle(String title) {
		_title = title;
	}

	public String getDescription() {
		return _description;
	}

	public void setDescription(String description) {
		_description = description;
	}

	public boolean getOrganization() {
		return _organization;
	}

	public boolean isOrganization() {
		return _organization;
	}

	public void setOrganization(boolean organization) {
		_organization = organization;
	}

	public long getOrganizationId() {
		return _organizationId;
	}

	public void setOrganizationId(long organizationId) {
		_organizationId = organizationId;
	}

	public String getOrganizationType() {
		return _organizationType;
	}

	public void setOrganizationType(String organizationType) {
		_organizationType = organizationType;
	}

	public int getOrganizationStatus() {
		return _organizationStatus;
	}

	public void setOrganizationStatus(int organizationStatus) {
		_organizationStatus = organizationStatus;
	}

	public boolean getSites() {
		return _sites;
	}

	public boolean isSites() {
		return _sites;
	}

	public void setSites(boolean sites) {
		_sites = sites;
	}

	public boolean getRecursable() {
		return _recursable;
	}

	public boolean isRecursable() {
		return _recursable;
	}

	public void setRecursable(boolean recursable) {
		_recursable = recursable;
	}

	public long getCountryId() {
		return _countryId;
	}

	public void setCountryId(long countryId) {
		_countryId = countryId;
	}

	public long getRegionId() {
		return _regionId;
	}

	public void setRegionId(long regionId) {
		_regionId = regionId;
	}

	public double getLongitude() {
		return _longitude;
	}

	public void setLongitude(double longitude) {
		_longitude = longitude;
	}

	public double getLatitude() {
		return _latitude;
	}

	public void setLatitude(double latitude) {
		_latitude = latitude;
	}

	public long getParentId() {
		return _parentId;
	}

	public void setParentId(long parentId) {
		_parentId = parentId;
	}

	private long _merchantId;
	private long _companyId;
	private long _creatorUserId;
	private Date _createDate;
	private Date _modifiedDate;
	private String _type;
	private String _code;
	private String _title;
	private String _description;
	private boolean _organization;
	private long _organizationId;
	private String _organizationType;
	private int _organizationStatus;
	private boolean _sites;
	private boolean _recursable;
	private long _countryId;
	private long _regionId;
	private double _longitude;
	private double _latitude;
	private long _parentId;
}